home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmC3_504_EachMenuItem < prev    next >
Encoding:
Text File  |  1992-04-08  |  969 b   |  51 lines

  1. %case defineItem%
  2.     %if commandNr > 999%
  3.         const short c%MenuName%%MenuItemName%%    %= %commandNr%; 
  4.     %endif%
  5. %case includeDialog%
  6.     %if dialogExists%
  7.         #ifndef __U%dlogname%__
  8.         #include "U%dlogname%.h"
  9.         #endif
  10.  
  11.     %endif%
  12. %case doItem.decl%
  13.     %if commandNr > 999%
  14.         %if dialogExists%
  15.             %if modeless%
  16.                 virtual pascal void Do%MenuItemName%    (void);
  17.             %endif%
  18.         %endif%
  19.     %endif%
  20. %case doItem%
  21.     %if commandNr > 999%
  22.         %if dialogExists%
  23.             %if modeless%
  24.                 #pragma segment ASelCommand
  25.                 //----------
  26.                 pascal void T%appname%App::Do%MenuItemName% ()
  27.                 {
  28.                     f%dlogname%->Open ();
  29.                     f%dlogname%->Select ();
  30.  
  31.                 } /* Do%MenuItemName% */
  32.  
  33.             %endif%
  34.         %endif%
  35.     %endif%
  36. %case handleItem%
  37.     %if commandNr > 999%
  38.         case c%MenuName%%MenuItemName%:
  39.         %if dialogExists%
  40.                     Do%dlogname% ();
  41.                 break;
  42.         %else%
  43.                     // handle %MenuItemName% choice;
  44.                 break;
  45.         %endif%
  46.     %endif%
  47. %case enableItem%
  48.     %if commandNr > 999%
  49.         Enable (c%MenuName%%MenuItemName%, TRUE);
  50.     %endif%
  51.